package com.hgkj.cloud.base.service.impl;

import com.hgkj.cloud.base.dao.SysTestingScoreStandardMapper;
import com.hgkj.cloud.base.domain.SysTestingScoreStandard;
import com.hgkj.cloud.base.service.SysTestingScoreStandardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysTestingScoreStandardServiceImpl implements SysTestingScoreStandardService {

    @Autowired
    private SysTestingScoreStandardMapper sysTestingScoreStandardMapper;

    @Override
    public List<SysTestingScoreStandard> listStandardsBySubId(Integer subId) {
        try {
            return sysTestingScoreStandardMapper.listStandardsBySubId(subId);
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
            return null;
        }
    }

    @Override
    public int insertStandard(SysTestingScoreStandard standard) {
        return sysTestingScoreStandardMapper.insertStandard(standard);
    }
}
